<template>
  <div>
    <div class="box-qb">
      <div class="box">
        <pic-zoom :url="imgurl" :scale="2"></pic-zoom>
      </div>
    </div>
    <div class="list">
      <ul>
        <li
          v-for="(item, index) in imagesList"
          :key="index"
          @mouseenter="changeImage(index)"
        >
          <img :src="item" />
        </li>
      </ul>
    </div>
  </div>
</template>
<script>
import PicZoom from "vue-piczoom";
export default {
  name: "FooterShow",
  data() {
    return {
      imgurl:require("../assets/2.png"),
      imagesList: [
       require("../assets/2.png"),
       require("../assets/3.png"),
       require("../assets/2.png"),
      ],
    };
  },
  components: {
    PicZoom,
  },
  methods: {
    changeImage: function (index) {
      this.imgurl = this.imagesList[index];
    },
  },
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.box {
  width: 500px;
  height: 400px;
}
.box-qb {
  background: red;
  height: 400px;
  width: 500px;
}
.box img {
  width: 100%;
}
.list {
  width: 400px;
  height: 130px;
}
.list ul {
  width: 400px;
  display: flex;
  justify-content: space-around;
}
.list ul li {
  width: 120px;
  height: 90px;
  background-color: white;
  margin-top: 15px;
}
.list ul li img {
  width: 100%;
}
</style>